<!DOCTYPE html>
<head>
<!-- Row Highlight Javascript -->
<script type="text/javascript">
	window.onload=function(){
	var tfrow = document.getElementById('tfhover').rows.length;
	var tbRow=[];
	for (var i=1;i<tfrow;i++) {
		tbRow[i]=document.getElementById('tfhover').rows[i];
		tbRow[i].onmouseover = function(){
		  this.style.backgroundColor = '#ffffff';
		};
		tbRow[i].onmouseout = function() {
		  this.style.backgroundColor = '#d4e3e5';
		};
	}
};
</script>

<style type="text/css">
.body{width:1300px; high:auto; margin:0 auto; padding:10px; border:1px solid gray;}
table.tftable {font-size:12px;color:#333333;width:100%;border-width: 1px;border-color: #729ea5;border-collapse: collapse;}
table.tftable th {font-size:12px;background-color:#acc8cc;border-width: 1px;padding: 8px;border-style: solid;border-color: #729ea5;text-align:left;}
table.tftable tr {background-color:#d4e3e5;}
table.tftable td {font-size:12px;border-width: 1px;padding: 8px;border-style: solid;border-color: #729ea5;}
b.red{color:red;}
</style>

<script type="text/javascript" src="yaml.js"></script>
<script type="text/javascript" src="jquery-1.9.0.min.js"></script>
<script>


dict = YAML.load('compounds.yaml')
console.log(dict);


</script>

</head>

<body >
<div class="body">

<p id="p1"></p>

 输入字帖文字<input id="words" size="100" type="text" value="" autocomplete="off" name="words" placeholder="输入要创建字帖的汉字"  class="layui-input search_input">
<br><br>
<div>背景格：<input type="radio" name="tianzige" value="0" checked=""><img src="svg/bg02.svg" alt="米回格" title="米回格" width="25">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type="radio" name="tianzige" value="1" checked=""><img src="svg/bg12.svg" alt="田字格" title="田字格" width="25">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type="radio" name="tianzige" value="2"><img src="svg/bg22.svg" title="米字格" alt="米字格" width="25">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type="radio" name="tianzige" value="3"><img src="svg/bg32.svg" title="米回格2" alt="米回格2" width="25">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type="radio" name="tianzige" value="4"><img src="svg/bg42.svg" title="回宫格" alt="回宫格" width="25">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type="radio" name="tianzige" value="5"><img src="svg/bg52.svg" title="蛋格" alt="蛋格" width="25">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type="radio" name="tianzige" value="6"><img src="svg/bg62.svg" title="九宫格" alt="九宫格" width="25">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type="radio" name="tianzige" value="8"><img src="svg/bg82.svg" title="蛋田格" alt="蛋田格" width="25">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type="radio" name="tianzige" value="7"><img src="svg/bg72.svg" title="方格" alt="方格" width="25">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type="radio" name="tianzige" value="99">无背景格</div>
<br>

 描红字浓淡(9最浓、0最浅=无)：<input id="tran" size="20" type="text" value="933333000000" autocomplete="off" name="tran" placeholder="933333000000"  class="layui-input search_input">
 &nbsp;&nbsp;&nbsp;&nbsp;预设： <button class="btn" onclick="miao(9999)" >全描</button>
 <button class="btn" onclick="miao(5)" >半描</button>
 <button class="btn" onclick="miao(0)" >不描</button>
<br><br>
<div>描红字颜色：<input type="radio" name="fontc" value="1"><span  style="color:green">绿色</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type="radio" name="fontc" value="2" checked="">黑色&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type="radio" name="fontc" value="3"><span  style="color:red">红色</span></div>
<br>
<button class="btn" onclick="makezitie('楷体')" >创建楷体字帖</button>
<button class="btn" onclick="makezitie('嗡阿吽－田英章钢笔楷书简')" >创建楷书字帖</button>
<button class="btn" onclick="makezitie('绿木屐JXP行楷')" >创建行楷字帖</button>
<button class="btn" onclick="makezitie('田英章行书')" >创建行书字帖</button>
<button class="btn" onclick="makezitie('华光硬笔简瘦金体')" >创建瘦金体字帖</button>
<button class="btn" onclick="makezitie('草书 简入繁出')" >创建草书字帖</button>
<button class="btn" onclick="makezitie('汉仪篆书繁')" >创建篆书字帖</button>
<button class="btn" onclick="makezitie('润植家康熙字典清瘦美化体')" >创建康熙字帖</button>
<br><br>
点击创建字帖按钮即可，请确保<b class="red">已经安装了压缩包里带的字体</b>。
<div>
<h3>频率表</h3>



<table id="tfhover" class="tftable" border="1">
<tr><th>汉字频率</th><th>部件频率</th></tr>

<tr><td>的一是不了在有人这上大来和我个中地为他生要们以到国时就出说会也子学发着对作能可于成用过动主下而年分得</td><td>白勺的口亻人日土一辶不氵木扌也讠了又大女宀心子纟禾[定下]是中阝力寸刂生上[青下]目文囗为王彳门[有上]以[在角]</td></tr>
<tr><td>家种里多经自现同后产方工行面那小所起去之都然理进体还定实如么物法你好性民从天化等力本长心把部义样事看</td><td>月八工在有云夕攵方十出主艹见这忄发里用[竹头]匕于斤己下丨本贝立灬至开我来正和个[而上]儿头小广丁可地去京田二</td></tr>
<tr><td>业当因高十开些社前又它水其没想意三只重点与使但度由道全制明相两情外间二关活正合者形应头无量表象气文展</td><td>[要上]到尤要他长之玉厶石夂走们者业天几义刀艮冫兑国么其页巴乍时寺民青就[学上]殳成由[差上]隹礻而会火对旦说水</td></tr>
<tr><td>系代加各很教新向机她内此老变原结问手日利质已最政儿见并平资比特果什建反常知第电思立提或通解身四品几位</td><td>只舌及马与分山各占止[经右]巾钅学着[牛旁]合能且气米作多[能右][能左]厂相自三尸此羊化戈豕过动[老上][而下]手车</td></tr>
<tr><td>别论公给少条观回海基次被山才己期西术济认先命走真员及数话门级军统光声题入美口感战科程式指世必放打接总</td><td>从内才[青上][尚上]尔[得右]年同家无井得冂彡少种直彐那卜勿经[一口]音现[车旁]后产[后上][足旁]平皮斗士[反外]元</td></tr>
<tr><td>做东区农强造类受场五直月流决干则更色处路运任具目再治神求件管组根阶将改导眼规识革计白马金界取市设语完</td><td>[义下]关弓面行亍[合上][面下]然[那左]欠已穴[剖左][所左]所起[赏上]介示交都次[然上]因耳理定电弋你进体角专还干</td></tr>
<tr><td>究党女传风信名便保育队带叫研领北较张即至许步往听调务花争线呢每边难太共交确劳据达住收候需转百南清格影</td><td>术实取如九高物古虫法东[杂下]好性[化右]等今[炯右]令每把部当向首[享上]台必样[看上]事看[缺右]亲原衤前太[角上]</td></tr>
<tr><td>书切且却志热联安极今单商料技深验增记近言整精集空连报觉车价音响办存怎病快图况例消容史非离节亲万八构族</td><td>它些矢比象入间世五聿[前上]社[前下]反[度外][品下]没想意更亠加度重两办夫非市明点告吏全巳使但道身活[雨头]代甬</td></tr>
<tr><td>石满何广律青林克王历权素始断九际积吃态艺证众创红望须群师该复细包土持服笑德般远爱准写算火死半布随六元</td><td>言制母疒[制左]冖卩情先果外七糸亥支户另犭形[变上][应内]应吉量表[衣下]佥[收左]展孝[展内]建系戋牛并新[告上]匚</td></tr>
<tr><td>低称引照失养视习段字织斗团器兴乐效显斯千落示仅企似备除支标早吧周速跟七采状吗约城层专划轻拉值适英告讲</td><td>犬很教[爱上][向框]失[荧上]毛包咸[足下]丬衣机她或老知[扬右]廴歹仑军公列安求员乙利申皿变[原内]齐充虽书结良林</td></tr>
<tr><td>维营士环古让院按型势足毛台紧片属严树画厂功注演源温某找参易飞推围列客河虽境食李尔黄黑念越选华角考致夫</td><td>官共居肖问真则周最质[质内]执政故万式[比左]完[每上]区资特舟思史什色常娄酉半[弟下]第解提余千[口一]通光[解右]</td></tr>
<tr><td>初装议首委底另江息密压孩村费局派房星突供曾排苦够像站校富谈米充阳破母球射批配纪未哪妈差刚率察舞依占呀</td><td>[盖上]争[报右]四西品位别论[黄上]冬给北条央回未牙海革曾观习路基[流右]呈农[即左][逼内]早受[声下]片被午旨谷期</td></tr>
<tr><td>微础益倒刻举血故互范木号尽请脸兵职留铁吸钱急独剧查皮激坐乎固害夜续京双拿府限草项述曲既春官坚令句助简</td><td>济叩认勹命兀司氐数话乐美尼级统感[修左]总[罗上]声题仓予科战任程将指妾却放吾打[兑上]接造做具强风壬[脑右]类</td></tr>
<tr><td>杂材封护司省县模试绝洋谁继止喜优词陈鱼终施晚朝含仍脑甚汉修油衣击云送巴普征错均投波余友武责游敌叶船久</td><td>[齐下]莫场[亏下]乎景单空流步决勾金兴处运兄饣再[断左]圭治神件[充上]管[探右]规呆[风外]南组根[贤上]阶句[将右]</td></tr>
<tr><td>否异块脚怕田策苏乡帝靠医测植啊括换逐娘罗戏善获待降冲父置左右沉酸亮良班著亚抗啦静渐概居跑旧防买挥负帮</td><td>改导眼识切飞乃采竟昔[节下]保韦便友计容难界带设语张务鱼名究付党传队击信卖父育即亡[带上]叫[师左]研领布劳[北左]</td></tr>
<tr><td>欢冷液停减男胜答析忙短烈映财背奇药承岁略穿牛室移饭坏假州缺愿练超雨慢竟呼散灵副歌谓虫读介培卫宗章评伤</td><td>较需许[至上]扁连约[步下]夭鸟束往听调龙花线[候右]足呢边拉达确离百据丙住互收候转弗召敕[南内][南外]清格影志黑</td></tr>
<tr><td>丰核预担诉惊刘景乱氧阿龙宣升爷洲判案协福货味若促希握端针屋掌检痛闻妇贵顾沙扩困哥嘴销印免烟跳香纸户板</td><td>热联极甘君商觉何料技深验增记既近整精存集某[春上]报冈川炎快[冬下]价响尺客怎病哭乞吕图急[满右]复般巨况族例消</td></tr>
<tr><td>睛误探座盾灯搞祖顺婚赶季兰忽践熟矛银爸临佛犯胞讨陆补童圆归弟域索罪脱追守课顶松杀掉野训遍庭弱赛额酒绿</td><td>夜节显[离下]构[族右]满克廾[占上]历律久免师素权始断坐乡际积[择右][彭左]艺黄段吃态证众创红洛[望上]望须群[师右]</td></tr>
<tr><td>席露卖钟旁肉央染欧怀稳伯编抓玉咱唯唱翻释控怪阵烧堂杨您诗灭夏敢退姑恶透鲜附骨审胡输宁丝姐彩睡巨迫鼓伙</td><td>该写[复下]细持服爱笑录[德右]德亚易远刑死兰参[卷下]星准[采上]昭壮斯兆引宗[算下]算六[随右]随丰豆低称[亮上]照</td></tr>
<tr><td>借耳典刺暗镜序哈菜溶笔汽礼摇迅险遗威沿弹私攻宝抽雪孙藏毒顿末摆趣救镇楼智园康永遇雄替危楚侵枪冰健播途</td><td>阿射委[养上]养亢视州[段左]字右织刍氏羽矛[枣上]团器效奇备落丘害仅[沿右]企似卫除标吧食[旁上][周内][周外]速跟</td></tr>
<tr><td>损秀丽秋执束纳虑疑午粮架盛湖尚床份套毫奋扬赵混献择庄殖店皇购缩盐冬齐径偏盖款衡阻托喊繁纯牙殊浪招符折</td><td>番属俞息永朝胡状升[寒上]吗英城层哥划轻责屋留值适华麻辟祭禹虍讲维宓营屯察府环让院[温右]寅江按型严势尧紧[留上]</td></tr>
<tr><td>泽弄奶谢累亦厚朋伸筑闪枝授蛋潮登售孔街败迎肥恩尼幼惯钢肯矿岛伟粉振吴夺尤忘荣亡阴凡毕暴唐勇避麻股硬洞</td><td>树[画下]画贵功秀注考演源温找[参下]推围[举下]波河念曼朱境李末[黄下][黑上][越内]越[载外]选致兵敫初装议底曷密</td></tr>
<tr><td>盘轮警闹录绍描寻妹幸壁距玩休延综甲泛哲载雷窗虚秘俗倾哭禁零触巧圈努喝彻晶丁操奴宜菌叔桥仿默航谷泪予挂</td><td>率甲罗双[压下]压辰孩村费[碰右]局[局上]益匀[派右]派房[弱半]斩突供[曾上]排苦够[朝左]像站鬼差查校章吴富谈[拣右]</td></tr>
<tr><td>壮纷粒燃诸削苗婆付迷馆灰鸡岸寒泥梅残税虎庆抱鸟拍墙缓横尾督莫械尖旅倍措剥遭懂粗奏润侧辩茶鬼梦贯篇妻宽</td><td>阳斥甚破球县喜帝微舛批配纪哪妈血刚[率下][舞上]舞依折廷呀[微右][益上]础倒刻举[酸右]奴武[揣右]弟[范下]范邦奂</td></tr>
<tr><td>腿刀桌浓跃蹈洗卷欲袋赏悲劲鲁赞氏汇迹竞醒裂闭森腰磁湿聚兄徐炼订川吹蒙胸召伴徒幅疗淡奖仪珠绪蒋猪剂访狗</td><td>尽号请脸普固职铁吸钱春独剧激助甫[害下][夜下]负续[京下]爪苗拿叔限曲草项亘述坚希征[既右][抑右][番上][官下]简</td></tr>
<tr><td>摸趋宋伏棉恐羊碳隔网猛爬缘麦库津监薄净旋贫罢穷乏挑废汗耗尊牌抢软隶宇圣港欣塞刑博揭垂姓捕荒诚炮呈辑卡</td><td>杂材垂封护省模试绝若男洋谁禺继旁巩优缶词骨疋[礼右]昌陈亭终含[沲右]施晚仍退脑汉尚[假右][修右]修析胃瓦油盾送</td></tr>
<tr><td>伦蓝抬宫敬版忍颜竹碰启票隐抵脉浮煤剩珍奔堆扎谋貌脏逃洪旗潜鼻忆湾绩恰坦怒震豆插戴涉绘瓦龄池沟呵伍氢拥</td><td>散错均左投[武上][游右]游否童隶敌善叶船异块圣脚怕策苏靠医测植啊括换逐娘[降右]戏爰著[善上]冗[获下]获待降冲置</td></tr>
<tr><td>乘吉尺朱蒸舍贡糊梁漫腾症丈钻磨井艰键绕幕斤污贝冒阔胆渡碍崇愈岩玻碎宪俄障融贸耐届寄荡币俩卵弃悄偶纵陷</td><td>卓沉酸亮瓜庄[班右]班监乏卷抗啦昏静渐概罢跑防旧买[横钩]肉挥唐帮戊欢[峰右]亦冷液岁[半变]停乔减亏胜答灰替忙短</td></tr>
<tr><td>坡勤享塑膜铜拖暖稍摩硫哩乌循妙疾肩炎偷赤灾恒孤仁腔杯乃稀恢违伊挺乙拜焦锋铺颗滑敏洁嘛凝凉杜凭勒爆递鞋</td><td>烈宣背映[摇右]财昆药承贯票略穿掌室饭移辛曹[傅右]坏沙假缺愿练丈超雨慢灵幺呼[散左]副[辛变]歌厄登谓读培[迅内]</td></tr>
<tr><td>迁秦桂璃摄叹峰牧恨糖骂贴紫壤辛仰腐割辈君泡郭呆番励乳亿兼昨刊擦迟拔丹彼搬眉滴朵畜遵逻患奥耕忠鉴挤滚壳</td><td>危[饬右]疑[雄左]秋刘评伤卒敬核预担惊诉享困暴朋乱氧爷洲敏判凡舍案协福货味促握端针[览上]皇检痛闻香卑审妇[贵上]</td></tr>



</table>



</div>
</div>
<script> 
function miao(n) 
{
	if (n == 9999)
	{
		 document.querySelector("#tran").value="933333333333";
	}else {
		s = '9';
		for (i=0;i<n ;i++ )
		{
			s=s+"3";
		}
		document.querySelector("#tran").value=s;
	}
}
function makezitie(ff) 
{
	words = document.querySelector("#words").value;
	var tianzige = $("input[name='tianzige']:checked").attr("value");
	tran = document.querySelector("#tran").value;
	var fc = $("input[name='fontc']:checked").attr("value");
	if (ff == '草书 简入繁出')
	{
		x=-12;y=-6;
	}else{
		x=0;y=0;
		}
	window.open('makezitie.htm?font='+ff+'&data='+words+'&bg=bg'+tianzige+"2"+'&tran='+tran+'&fc='+fc+'&x='+x+'&y='+y);
}

function chazi() 
{
	word = document.querySelector("#condition").value;
	if (word.length<1 ||word.length>2 )
	{
		alert("请输入单个汉字");
		return;
	}
	//alert(document.querySelector("#condition").value);
	bujian = dict[word]["operandList"];
	console.log(bujian);
	wds = "";
	for (bj in bujian)
	{
		wds +=bujian[bj] +"<br>";
		for (w in dict)
		{
			if (w.length==1)
			{
				for (bb in dict[w]["operandList"])
				{
					if (bujian[bj] == dict[w]["operandList"][bb])
					{
						wds += w;
						break;
					}

				}
			}
			

		}
	
		wds += "<br><br>";

	}
	document.getElementById("p1").innerHTML=wds;

	


}

</script> 

</body >
</html>
